package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 线索无效原因
 */
@Getter
public enum ClueInvalidEnum {

    NO_CONTACT("1", "enum.clueInvalid.name.no_contact", "noContact"),


    CLUES_TO_REPEAT("2", "enum.clueInvalid.name.clues_to_repeat", "cluesToRepeat"),


    UNQUALIFIED("3", "enum.clueInvalid.name.unqualified", "unqualified"),

    OTHER("4", "enum.clueInvalid.name.other", "other"),
    ;


    private String code;
    private String name;
    private String attr;

    ClueInvalidEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
